<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: qupen
  Date: 2016/9/19
  Time: 14:56
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<aside class="main-sidebar">
    <!-- sidebar: style can be found in sidebar.less -->
    <section class="sidebar">
        <!-- sidebar menu: : style can be found in sidebar.less -->
        <ul class="sidebar-menu">
            <li class="tree-view">
                <a href="javascript:;">
                    <img src="/images/icon1.png"/>
                    <span><spring:message code="label.admin.dashboard"/></span>
                    <span class="pull-right-container">
                        <i class="fa fa-angle-left pull-right"></i>
                    </span>
                </a>
                <ul class="treeview-menu">
                    <li>
                        <a data-hash="#dashboard" href="/admin/dashboard#dashboard">
                            <i class="fa fa-circle-o"></i>
                            <spring:message code="label.admin.dashboard"/>
                        </a>
                    </li>
                </ul>
            </li>
            <li class="tree-view">
                <a href="javascript:;">
                    <img src="/images/gateway-state.png"/>
                    <span><spring:message code="label.admin.gateway.state"/></span>
                    <span class="pull-right-container">
                        <i class="fa fa-angle-left pull-right"></i>
                    </span>
                </a>
                <ul class="treeview-menu">
                    <li>
                        <a data-hash="#getewayState" href="/admin/device/gatewayState#getewayState">
                            <i class="fa fa-circle-o"></i>
                            <spring:message code="label.admin.gateway.state"/>
                        </a>
                    </li>
                </ul>
            </li>

            <li class="tree-view">
                <a href="#">
                    <img src="/images/icon2.png"/>
                    <span class="sie-nav-parent">
                        <spring:message code="label.admin.sidebar.tenant.manage"/>
                    </span>
                    <span class="pull-right-container">
                        <i class="fa fa-angle-left pull-right"></i>
                    </span>
                </a>
                <ul class="treeview-menu">
                    <li>
                        <a data-hash="#tenantList" href="/admin/tenant/list#tenantList">
                            <i class="fa fa-circle-o"></i>
                            <spring:message code="label.admin.sidebar.tenant.manage"/>
                        </a>
                    </li>
                    <li>
                        <a data-hash="#serviceManage" href="/admin/service/manage#serviceManage">
                            <i class="fa fa-circle-o"></i>
                            <spring:message code="label.admin.sidebar.service.manage"/>
                        </a>
                    </li>
                    <li>
                        <a data-hash="#tenantCreate" href="/admin/tenant/create#tenantCreate">
                            <i class="fa fa-circle-o"></i>
                            <spring:message code="label.admin.sidebar.create.tenant"/>
                        </a>
                    </li>
                </ul>
            </li>
            <li class="tree-view">
                <a href="javascript:;">
                    <img src="/images/icon3.png"/>
                    <span>
                        <spring:message code="label.admin.sidebar.platform.management"/>
                    </span>
                    <span class="pull-right-container">
                        <i class="fa fa-angle-left pull-right"></i>
                    </span>
                </a>
                <ul class="treeview-menu">
                    <li>
                        <a data-hash="#config" href="/admin/config/logs#config">
                            <i class="fa fa-circle-o"></i>
                            <spring:message code="label.admin.sidebar.log.management"/>
                        </a>
                    </li>
                    <li>
                        <a data-hash="#backupSetting" href="/admin/dbManager/page#backupSetting">
                            <i class="fa fa-circle-o"></i>
                            <spring:message code="label.admin.sidebar.data.backup.management"/>
                        </a>
                    </li>
                    <li>
                        <a data-hash="#adminServiceList" href="/admin/service/list#adminServiceList">
                            <i class="fa fa-circle-o"></i>
                            <spring:message code="label.admin.sidebar.server.project.management"/>
                        </a>
                    </li>
                    <li>
                        <a data-hash="#metadataList" href="/admin/metadata/list#metadataList">
                            <i class="fa fa-circle-o"></i>
                            <spring:message code="label.admin.sidebar.machine.metadata.management"/>
                        </a>
                    </li>
                    <li>
                        <a data-hash="#serviceStatistics" href="/admin/service/statistics#serviceStatistics">
                            <i class="fa fa-circle-o"></i>
                            <spring:message code="label.admin.sidebar.service.statistic"/>
                        </a>
                    </li>
                    <c:if test="${sessionScope['siemens.multitenant.login.user'].getRoleId()==0}">
                        <li>
                            <a data-hash="#adminUsers" href="/admin/user/users#adminUsers">
                                <i class="fa fa-circle-o"></i>
                                <spring:message code="label.admin.sidebar.admin.management"/>
                            </a>
                        </li>
                    </c:if>
                </ul>
            </li>
            <li class="tree-view">
                <a href="javascript:;">
                    <img src="/images/icon7.png"/>
                    <span><spring:message code="label.admin.event.manage"/></span>
                    <span class="pull-right-container">
                        <i class="fa fa-angle-left pull-right"></i>
                    </span>
                </a>
                <ul class="treeview-menu">
                    <li>
                        <a data-hash="#eventList" href="/admin/event/subscription#eventList">
                            <i class="fa fa-circle-o"></i>
                            <spring:message code="label.admin.event.subscription"/>
                        </a>
                    </li>
                    <li>
                        <a data-hash="#message" href="/admin/user/messages#message">
                            <i class="fa fa-circle-o"></i><spring:message code="label.message"/>
                            <%--<span class="pull-right-container">--%>
                                <%--<span id="leftMessage" class="label label-primary pull-right"></span>--%>
                            <%--</span>--%>
                        </a>
                    </li>
                </ul>
            </li>
            <li class="tree-view">
                <a href="javascript:;">
                    <img src="/images/icon4.png"/>
                    <span> <spring:message code="label.admin.settings"/></span>
                    <span class="pull-right-container">
                        <i class="fa fa-angle-left pull-right"></i>
                    </span>
                </a>
                <ul class="treeview-menu">
                    <li>
                        <a data-hash="#configEmail" href="/admin/config/email#configEmail">
                            <i class="fa fa-circle-o"></i>
                            <spring:message code="label.admin.sidebar.mail.server.settings"/>
                        </a>
                    </li>
                </ul>
            </li>
            <li class="tree-view">
                <a data-hash="#statisticalForm" href="javascript:;">
                    <img src="/images/charts.png"/>
                    <span><spring:message code="label.admin.statistical.statements"/></span>
                    <span class="pull-right-container">
                        <i class="fa fa-angle-left pull-right"></i>
                    </span>
                </a>
                <ul class="treeview-menu">
                    <li>
                        <a data-hash="#deviceAllIdleChart" href="/admin/chart/sameDeviceDiffReason#deviceAllIdleChart">
                            <i class="fa fa-circle-o"></i>机床所有idle原因趋势</a>
                    </li>
                    <li>
                        <a data-hash="#deviceIdleChart" href="/admin/chart/sameDeviceSameReasonChart#deviceIdleChart">
                            <i class="fa fa-circle-o"></i>机床idle原因趋势</a>
                    </li>
                    <li>
                        <a data-hash="#idleDevicesChart" href="/admin/chart/sameIdleReasonDiffDeviceChart#idleDevicesChart">
                            <i class="fa fa-circle-o"></i>所有发生idle原因的机床趋势</a>
                    </li>
                    <li>
                        <a data-hash="#deviceStateBarChart" href="/admin/chart/deviceStateBarChart#deviceStateBarChart">
                            <i class="fa fa-circle-o"></i>机床状态时间统计</a>
                    </li>
                    <li>
                        <a data-hash="#deviceServiceChart" href="/admin/chart/deviceServiceChart#deviceServiceChart">
                            <i class="fa fa-circle-o"></i>OEE and So on</a>
                    </li>
                    <li>
                        <a data-hash="#shiftDeviceServiceChart" href="/admin/chart/shiftDeviceServiceChart#shiftDeviceServiceChart">
                            <i class="fa fa-circle-o"></i>Shift OEE and So on</a>
                    </li>
                    <li>
                        <a data-hash="#shiftIdleChart" href="/admin/chart/shiftIdleChart#shiftIdleChart">
                            <i class="fa fa-circle-o"></i>班次idle原因饼图</a>
                    </li>
                    <li>
                        <a data-hash="#deviceStatePieChart" href="/admin/chart/dayOrShiftStateChart#deviceStatePieChart">
                            <i class="fa fa-circle-o"></i>机床状态饼图</a>
                    </li>
                </ul>
            </li>
            <li>
                <a data-hash="#changePassword" href="/admin/changePassword#changePassword">
                    <img src="/images/password.png">
                    <span>
                        <spring:message code="label.admin.change.password"/>
                    </span>
                </a>
            </li>
            <li>
                <a href="/admin/logout">
                    <img src="/images/quit_white.png" style="margin-left: 2px;">
                    <span>
                        <spring:message code="label.admin.sidebar.dashboard.profile.signOut"/>
                    </span>
                </a>
            </li>
        </ul>
    </section>
    <!-- /.sidebar -->
</aside>
